package com.xdqzy.baseline.common.enums;

public enum RespCode {
    SUCCESS(0, "操作成功"),
    FAIL(-1, "操作失败"),
    SYS_ERROR(-500, "系统错误"),
    IMAGE_ILLEGAL(-2, "图片格式无效"),
    FILE_ILLEGAL(-4, "文件格式无效"),
    IMAGE_TO_LARGE(-3, "图片过大");

    RespCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private final int code;
    private final String msg;

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
